﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace RepositoryDefinition
{
    public interface IPostRepository
    {
        List<ForumDomainModels.Post> GetPostsByCategory(ForumDomainModels.Category category);
        void InsertPost(ForumDomainModels.Post post);
        DateTime GetTimeOfLatestPostByCategory(ForumDomainModels.Category category);
        int GetPostCountByCategory(ForumDomainModels.Category category);

        ForumDomainModels.Post GetPostById(ForumDomainModels.Post post);
    }
}
